<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<!DOCTYPE html>
<html>
<head>
    <title>编辑分类 - 后台管理</title>
    <meta charset="utf-8"/>
    <link rel="stylesheet" href="/css/admin.css"/>
</head>
<body>
<div class="container">
    <div id="header">
        <jsp:include page="header.jsp"/>
    </div>
    <div id="admin_left">
        <ul class="submenu">
            <jsp:include page="left.jsp"/>
        </ul>
        <div id="copyright"></div>
    </div>

    <div id="admin_right">
        <div class="content_box">
            <div class="content form_content">
                <form action="/admin/category/edit" method="post">
                    <input type="hidden" name="id" value="${category.id}">
                    <div id="table_box_1">
                        <table class="form_table">
                            <colgroup>
                                <col width="150px">
                                <col>
                            </colgroup>
                            <tbody>
                            <tr>
                                <th>分类名称：</th>
                                <td>
                                    <input class="normal" name="name" type="text"
                                           value="${category.name}">
                                    <label>*</label>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <table class="form_table">
                        <colgroup>
                            <col width="150px">
                            <col>
                        </colgroup>
                        <tbody>
                        <tr>
                            <td></td>
                            <td>
                                <button class="submit" type="submit">
                                    <span>保存修改</span>
                                </button>
                                <button class="cancel" type="button" onclick="history.back()">
                                    <span>返回</span>
                                </button>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                    <c:if test="${not empty error}">
                        <div class="error">${error}</div>
                    </c:if>
                </form>
            </div>
        </div>
    </div>
    <div id="separator"></div>
</div>
</body>
</html>